TomTom ISO C fix.
authorrobertl <robertl>
Tue, 22 Jan 2008 04:03:17 +0000 (04:03 +0000)
committerrobertl <robertl>
Tue, 22 Jan 2008 04:03:17 +0000 (04:03 +0000)
tomtom.c

index 070324784d3692941a362693fe665e4cd71ebcc7..49f3b2ae0eb31e3e3c7552a63722856b6f982160 100644 (file)
--- a/tomtom.c
+++ b/tomtom.c
@@ -230,8 +230,8 @@ write_blocks( FILE *f, struct blockheader *blocks ) {
        }
        if ( !blocks->ch1 && !blocks->ch2 ) {
                for ( i = 0; i < blocks->count; i++ ) {
+                       char desc_field [256];
                        write_char( f, 2 );
-            char desc_field [256];
             if (global_opts.smart_names && 
                        blocks->start[i].wpt->gc_data.diff && 
                        blocks->start[i].wpt->gc_data.terr) {